package tests;

import java.util.Calendar;

import data.Data;
import data.GeneralDefinitions.ClusteringPriorityParameters;
import data.GeneralDefinitions.OrderingParameters;
import data.LUN;
import data.LUNPerTimeUnit;
import data.TimeUnit;

public class ConfData implements Data {

	@Override
	public LUN getLUN(int LUNid) {
		return new LUN(0,10,0,0);
	}

	@Override
	public LUNPerTimeUnit getLUNPerTimeUnit(int TimeUnitID, int LUNid) {
		LUN l=new LUN(0,10,0,0);
//		return new LUNPerTimeUnit(l,null,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0);
		return new LUNPerTimeUnit(l,null,1,0,1,0);
	}

	@Override
	public double[] getLUNVector(int LUNid, ClusteringPriorityParameters clusterType, Calendar startDate, Calendar endDate) {
		return null;
	}

	@Override
	public int[] getOrderedLUNVector(OrderingParameters orderingParameter) {
		int[] i={0,1,2,3};
		return i;
	}

	@Override
	public TimeUnit getTimeUnit(int TimeUnitID) {
        Calendar startCal = Calendar.getInstance();
        startCal.setTimeInMillis(1243083118904L); //making the time  a constant
        Calendar endCal = (Calendar) startCal.clone();
        endCal.add(Calendar.SECOND, 1);
		return new TimeUnit(0,600,0,0,0,0);
	}

	@Override
	public long getTotalBytesWritten(int TimeUnitID) {
		return 0;
	}

	@Override
	public double getTotalSize() {
		return 0;
	}

	@Override
	public int[] getUnactiveLUNs(int threshold) {
		return null;
	}

	@Override
	public void parse(String filename) {
	}

	@Override
	public int[] getLUNs() {
		return null;
	}

    @Override
    public int getNumOfTimeUnits() {
        return 5;
    }

	@Override
	public void addLun(int lun_id, int size) {
	}

	@Override
	public void addLunPerTimeUnit(int lun_id, int timeunit_id,
			double kbWritten, double kbRead, double numOfReads,
			double numOfWrites) {
	}

	@Override
	public void addTimeUnit(int timeUnit_id, int size) {
	}

	@Override
	public void endTransactions() {
	}

	@Override
	public LUNPerTimeUnit[] getAllLunPerTimeUnits(int timeUnitId, int start,
			int end, OrderingParameters orderingParameter) {
		return null;
	}

	@Override
	public String getFIleName() {
		return null;
	}

	@Override
	public void addTimeUnit(int timeUnit_id, int size, Calendar d) {
		// TODO Auto-generated method stub
		
	}

}
